package rpg.client.player.swing;

import java.awt.BorderLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import rpg.client.model.Actor;

class AvatarPanel extends JPanel {
    /**
     * 
     */
    private static final long serialVersionUID = -4381524472361414430L;

    public AvatarPanel(Actor actor) {
        super(new BorderLayout());

        final JLabel hair = new JLabel("hair");
        hair.setForeground(actor.getHairColour());
        add(hair, BorderLayout.NORTH);
        add(new JLabel(actor.getName()), BorderLayout.WEST);
        add(new JLabel(actor.getId()), BorderLayout.EAST);
        add(new JLabel(actor.getGender().name()), BorderLayout.SOUTH);
    }
}
